"""
数据传输对象（Data Transfer Object）模块：股票信息
"""

from app.common.constants import StockInfoConstants


class StockInfoDto(object):
    """
    股票信息Dto类
    """

    def __init__(self, code, name, type_, id_=0, status=StockInfoConstants.Status.NORMAL.value[0]):
        self.id = id_
        self.code = code
        self.name = name
        self.type = type_
        self.status = status

    def __str__(self):
        return "({0.id!s}, {0.code!s}, {0.name!s}, {0.type!s}, {0.status!s})".format(self)
